package model

// OauthConfig stores oauth service configuration options
type OauthConfig struct {
	AccessTokenLifetime  int64
	RefreshTokenLifetime int64
	AuthCodeLifetime     int64
}

var _OauthConfig *OauthConfig
func init() {
	_OauthConfig=&OauthConfig{AccessTokenLifetime:7*24*60*60,
	RefreshTokenLifetime:30*24*60*60,
	AuthCodeLifetime:2*60}
}

func GetOauthConfig()(*OauthConfig)  {
		return _OauthConfig
}
